package com.yueqian.system.converter;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yueqian.system.entity.UserDept;
import com.yueqian.system.vo.req.UserDeptReqVO;
import com.yueqian.system.vo.res.UserDeptResVO;


@Mapper
public interface UserDeptConvert {
	UserDeptConvert INSTANCE = Mappers.getMapper(UserDeptConvert.class);

	Page<UserDeptResVO> toPage(Page<UserDept> userDeptIPage);

	List<UserDeptResVO> toResList(List<UserDept> userDeptIPage);

	List<UserDept> toList(List<UserDeptReqVO> userDeptReqVO);

	UserDept toEntity(UserDeptReqVO userDeptReqVO);

	UserDeptResVO toRes(UserDept userDept);
}
